-
Notifications
You must be signed in to change notification settings - Fork 83
Removing leading newline in code block #117
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@@ -219,8 +219,8 @@ $ docker run --rm \ | |||
## Development | |||
|
|||
[embedmd]:# (tmp/make_help.txt) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kakkoyun what does this do? I wonder if this has to do with the extra newline that I am seeing ahead of this code block.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably that's the reason. This an annotation for a tiny program (https://github.com/campoy/embedmd) that we run to embed code pieces or generated things into markdown files. It's quite handy. Especially for the dynamic content. You can find the detailed usage in the Makefile.
Lines 66 to 68 in 3172b74
tmp/make_help.txt: Makefile | |
-mkdir -p tmp | |
$(Q) awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make <target>\n\nTargets:\n"} /^[a-zA-Z_-]+:.*?##/ { printf " %-15s\t %s\n", $$1, $$2 }' $(MAKEFILE_LIST) &> tmp/make_help.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think if you remove the leading \n
in printf
statement, it should work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. It doesn't look like we are generating any dynamic help text here at all, are we?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the \n
now as you suggested.
However I don't understand how this is working.
I ran make README.md
however that lead to a duplicate code block in the ## Development
section.
You see me a bit confused :)
CI is broken because of an unrelated issue https://github.com/meltwater/drone-cache/pull/119/files#r429900969. |
This ain't a biggie but I was trying to fix a little formatting problem in the README.
However not sure if my change has the desired effect?
Here the thing that I am trying to fix:
Proposed Changes
Description
Checklist
Unreleased
section of CHANGELOG.